package com.exchange.repository;

import com.exchange.entity.DeliveryTracking;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DeliveryTrackingRepository extends JpaRepository<DeliveryTracking, Long> {
    List<DeliveryTracking> findByOrderId(Long orderId);
    List<DeliveryTracking> findByOrderIdOrderByTimestampDesc(Long orderId);
}